//package Servlet;
//
//import java.io.IOException;
//import java.io.PrintWriter;
//import java.util.ArrayList;
//
//import javax.servlet.RequestDispatcher;
//import javax.servlet.ServletContext;
//import javax.servlet.ServletException;
//import javax.servlet.http.HttpServlet;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//import Dao.UserDao;
//
//public class SelectUser extends HttpServlet {
//
//    public void service(HttpServletRequest request, HttpServletResponse response)
//            throws ServletException, IOException {
//        String  account=request.getParameter("account");
//        String  password=request.getParameter("password");
//        UserDao dao=new UserDao();
//        ArrayList users = null;
//        try {
//            users = dao.checkId(account,password);
//            users = dao.queryBookById(password);
//        } catch (Exception e) {
//            // TODO Auto-generated catch block
//            e.printStackTrace();
//        }
//        request.setAttribute("users", users);
//        ServletContext application=this.getServletContext();
//        RequestDispatcher rd=application.getRequestDispatcher("/showBook.jsp");
//        rd.forward(request, response);
//
//    }
//}
